package middlewares

import (
	"github.com/gin-gonic/gin"
	"github.com/mars/internal/admin/core/domain"
)

const UserKey = "4a_user"

func ValidateAuth() gin.HandlerFunc {
	return func(ctx *gin.Context) {
		// TODO 权限认证
	}
}

func ValidateSignature() gin.HandlerFunc {
	return func(ctx *gin.Context) {
		// TODO 权限认证
	}
}

func GetUserFromContext(ctx *gin.Context) *domain.User {
	return nil
}
